﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ourmsg.Enum;

namespace  P
{
    /// <summary>
    /// 文件传输消息
    /// </summary>
    public class FileMsg : ImageFileMsg
    {
        /// <summary>
        /// 构造
        /// </summary>
        public FileMsg()
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="oprType"></param>
        public FileMsg(OprationType oprType)
        {
            OprType = oprType; 
        }

        /// <summary>
        /// 构造
        /// </summary>
        public FileMsg(string md5)
            : base(md5)
        {

        }

         /// <summary>
        /// 构造
        /// </summary>
        public FileMsg(string md5, string extension)
            : base(md5, extension)
        {
          
        }

        /// <summary>
        /// 操作类型
        /// </summary>
        public OprationType OprType 
        { get; set; }

        /// <summary>
        /// 传输的文件名
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 上次发送的文件位置
        /// </summary>
        public long LastLength { get; set; } 

 
    }
}
